<!DOCTYPE html>
<html>

<head lang="zh-cmn-Hans">
    <meta charset="UTF-8">
    <title>Bifrost Test</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=0.5,user-scalable=no" />

    <script src="demo.js"></script>
    <script src="bifrost.js"></script>
</head>
<style>
		.btn {
			text-align: center;
			background: dodgerblue;
			color: white;
			padding: 20px;
			margin: 30px;
			font-size: 24px;
			border-radius: 4px;
			box-shadow: 4px 2px 10px #999;
		}

		.line {
			text-align: center;
			color: black;
			padding: 20px;
			margin: 30px;
			font-size: 30px;
		}

		.btn:active {
			opacity: .7;
			box-shadow: 4px 2px 10px #555;
		}
	</style>

<body>

<div class="line">
------------- 属性 ------------------
<div class="btn" onclick="showJsVersion()">
    JS 脚本版本
</div>

    <div class="btn" onclick="nativeHaveMethod()">
    Native 方法是否存在
</div>
</div>

<!--2018 12 5-->
<div class="line">
------------- 基本功能 ------------------
</div>

<div class="btn" onclick="showToastClick()">
    提示框
</div>

<div class="btn" onclick="statusBar()">
    设置状态栏颜色
</div>

<div class="btn" onclick="showMenu()">
    显示操作菜单
</div>
<div class="btn" onclick="setDial()">
    打电话
</div>
<div class="btn" onclick="setSMS()">
    发短信
</div>

<a href = "https://github.com/" >没有加 target="_blank"</a>
<br>
<br>

<a href = "https://github.com/" target="_blank">加 target="_blank"</a>
<br>
<br>

<img src ="http://mmbiz.qpic.cn/mmbiz/k1s6ibE8fjAOoJicBlU3NSETazxVorapeHse7DDJeC0pFAyROWUgibPQuh8pLymbfvsEvXFpquoS2ApVqGQahIw2Q/640?wx_fmt=png&wxfrom=5&wx_lazy=1" width= "100"/>
<bR>
<bR>

<div class="btn" onclick="getDeviceInfo()">
    获取硬件信息
</div>
<div class="btn" onclick="getAppInfo()">
    获取App信息
</div>
<div class="btn" onclick="download()">下载文件</div>
<div class="btn" onclick="exit()">退出应用</div>
<div class="btn" onclick="setSessionData()">
    设置暂存数据，关闭应用删除
</div>
<div class="btn" onclick="getSessionData()">
    获取暂存数据，关闭应用删除
</div>

<div class="line">
    ------------- toggle 功能 ------------------
</div>

<div class="btn" onclick="showLoading()">
    开启加载提示
</div>
<div class="btn" onclick="hideLoading()">
    关闭加载提示
</div>
<div class="btn" onclick="showTitleBar()">
    显示标题栏
</div>
<div class="btn" onclick="hideTitleBar()">
    隐藏标题栏
</div>
<div class="btn" onclick="onAppStart()">
    监听启动应用注册
</div>
<div class="btn" onclick="offAppStart()">
    监听启动应用注销
</div>
<div class="btn" onclick="onTitleClick()">
    点击导航栏文字时触发回调
</div>
<div class="btn" onclick="offTitleClick()">
    停止监听
</div>
<div class="btn" onclick="onHomeClick()">
    Home键注册
</div>
<div class="btn" onclick="offHomeClick()">
    Home键注销
</div>
<input id="KeyboardSizeValue" style='font-size:30px'   autocomplete="off">
<div class="btn" onclick="onKeyboardSize()">
    监听软键盘高度
</div>
<div class="btn" onclick="offKeyboardSize()">
    取消监听软键盘高度
</div>
<div class="btn" onclick="onNetworkChange()">
    监听网络变化
</div>
<div class="btn" onclick="offNetworkChange()">
    取消监听网络变化
</div>
<div class="btn" onclick="onProgressBar()">
    显示进度条
</div>
<div class="btn" onclick="offProgressBar()">
    隐藏进度条
</div>

<div class="line">
    ------------- titleBar 功能 ------------------
</div>
<div class="btn" onclick="showPopMenu()">
    弹出下拉菜单
</div>
<div class="btn" onclick="setNavigationBar()">
    设置导航栏文字及样式
</div>
<div class="btn" onclick="setOptionButtonClick()">设置右上角按钮</div>
<div class="btn" onclick="setOptionButtonNUllClick()">清空右上角按钮</div>
<div class="btn" onclick="setOptionLeftButtonClick()">设置左上角按钮</div>

<div class="line">
    ------------- 第三方功能 ------------------
</div>

<input type="file" id="file"
/>
<div class="btn" onclick="setPushAlias()">绑定推送的手机号</div>
<div class="btn" onclick="setPushTags()">绑定推送的标签</div>
<div class="btn" onclick="clean()">清楚绑定设置</div>
<div class="btn" onclick="locationClick()">位置</div>
<div class="btn" onclick="chooseImageClick()">拍照</div>
<div class="btn" onclick="scanBtnClick()">扫码</div>
<div class="btn" onclick="shareBtnClickQQ()">QQ分享</div>
<div class="btn" onclick="shareBtnClickWC()">微信好友</div>
<div class="btn" onclick="shareBtnClickWCM()">微信朋友圈</div>
<div class="btn" onclick="shareBtnClickWB()">微博分享</div>
<div class="btn" onclick="shareBtnClickDD()">钉钉分享</div>

<div class="btn" onclick="goThirdPartyWebClick()">设置第三方返回按钮</div>


</body>

</html>
